package yxy.cherry.battle.module.record.stream;

import yxy.cherry.battle.Fighter;

/**
 * @author James
 * @date 2022/2/26 15:50
 **/
public class RecordStream35HpDrain extends RecordStream{
    private Fighter source;
    private Fighter target;
    private long addValue;
    private long reduceValue;

    public RecordStream35HpDrain(Fighter source, Fighter target, long addValue, long reduceValue){
        this.source = source;
        this.target = target;
        this.addValue = addValue;
        this.reduceValue = reduceValue;
    }
    @Override
    protected void _record() {
        sb().append(35);
        sb().append("|");
        sb().append(source.getFighterPosition().code());
        sb().append("|");
        sb().append(addValue);
        sb().append("|");
        sb().append(source.get血量万分值());
        sb().append("|");
        sb().append(target.getFighterPosition().code());
        sb().append("|");
        sb().append(target.get血量万分值());
        sb().append(";");
    }
}
